<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: PromiseT
  Date: 2022/5/30
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="static/bootstrap/css/bootstrap.css"/>
    <script src="static/bootstrap/js/jquery-3.3.1.min.js"></script>
    <script src="static/bootstrap/js/bootstrap.js"></script>
    <style type="text/css">

        .body {transform: scale(1.5) translate(20px, 10px); }
    </style>
</head>
<body>
<div style="width: 1200px;">
<%--    <form method="post" action="/CourseServlet/findCourse">--%>
        <table border=1 class="table table-striped table-bordered table table-hover">
            <tr >
                <th>课程编号</th>
                <th>课程名称</th>
                <th>授课老师</th>
                <th>简介</th>
                <th>版权所有</th>
            </tr>
            <c:forEach var="c" items="${list1}" >
                <tr>
                    <td>${c.cno}</td>
                    <td>${c.cname}</td>
                    <td>${c.cteacher}</td>
                    <td>${c.synopsis}</td>
                    <td><img src="${path}"></td>
                    <form method="post" action="/StudentServlet/photo/upload" enctype="multipart/form-data">
                        <td>
                            <a class="btn btn-default btn-sm" href="/StudentServlet/findCouByCno?cno=${c.cno}">修改</a>&nbsp;
<%--                            <a class="btn btn-default btn-sm" href="">删除</a>--%>
                            <a class="btn btn-default btn-sm" href="upload.jsp">上传版权照片</a>&nbsp;
                        </td>
                    </form>
                </tr>
            </c:forEach>
        </table>
<%--    </form>--%>
<%--        <img src="\upload\照片 004.png">--%>
</div>
</body>
</html>
